package com.weic.manager.expert.service;

import com.weic.manager.expert.mapper.ExpertVOMapper;
import com.weic.manager.vo.ExpertVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExpertService {

    @Autowired
    private ExpertVOMapper expertVOMapper;

    public List<ExpertVO> selectTop(Integer limitnum){
        return expertVOMapper.selectTop(limitnum);
    }

    public List<ExpertVO> selectAll(){
        return expertVOMapper.selectAll();
    };

    public int deleteByPrimaryKey(String pkExpert){
        return expertVOMapper.deleteByPrimaryKey(pkExpert);
    };

    public int insert(ExpertVO record){
        return expertVOMapper.insert(record);
    };

    public int insertSelective(ExpertVO record){
        return expertVOMapper.insertSelective(record);
    };

    public ExpertVO selectByPrimaryKey(String pkExpert){
        return expertVOMapper.selectByPrimaryKey(pkExpert);
    };

    public int updateByPrimaryKeySelective(ExpertVO record){
        return expertVOMapper.updateByPrimaryKeySelective(record);
    };

    public int updateByPrimaryKeyWithBLOBs(ExpertVO record){
        return expertVOMapper.updateByPrimaryKeyWithBLOBs(record);
    };

    public int updateByPrimaryKey(ExpertVO record){
        return expertVOMapper.updateByPrimaryKey(record);
    };

}
